package com.beehoo.dcportal.admin.service;

import java.util.List;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.ThemeBean;
import com.beehoo.dcportal.model.ThemeCodeBean;

public interface ThemeService {
	/**
	 * 初始化模板CODE
	 * 
	 * @return
	 * @throws BaseException
	 */
	public List<ThemeCodeBean> queryThemeCode() throws BaseException;

	/**
	 * 查询模板列表
	 * 
	 * @param streetId
	 * @return
	 * @throws BaseException
	 */
	public List<ThemeBean> queryThemes(String streetId) throws BaseException;

	/**
	 * 查询模板
	 * 
	 * @param streetId
	 * @param themeId
	 * @return
	 * @throws BaseException
	 */
	public ThemeBean queryTheme(String streetId, String themeId)
			throws BaseException;

	/**
	 * 更新模板
	 * 
	 * @param themeBean
	 * @throws BaseException
	 */
	public void updateTheme(ThemeBean themeBean) throws BaseException;

	/**
	 * 删除模板
	 * 
	 * @param themeId
	 * @throws BaseException
	 */
	public void delTheme(String streetId, String themeId) throws BaseException;

	/**
	 * 创建模板
	 * 
	 * @param themeBean
	 * @return
	 * @throws BaseException
	 */
	public String createTheme(ThemeBean themeBean) throws BaseException;

	/**
	 * 设置模板是否使用
	 * 
	 * @param streetId
	 * @param themeId
	 * @throws BaseException
	 */
	public void setInUseTheme(String streetId, String themeId)
			throws BaseException;
}
